Crate bevy_reflect_derive

Source
Expand description

This crate contains macros used by Bevy’s Reflect API.

The main export of this crate is the derive macro for Reflect. This allows types to easily implement Reflect along with other bevy_reflect traits, such as Struct, GetTypeRegistration, and more— all with a single derive!

Some other noteworthy exports include the derive macros for FromReflect and TypePath, as well as the reflect_trait attribute macro.

Macros§

Attribute Macros§

  • Generates a wrapper type that can be used to “derive Reflect” for remote types.
  • A macro that automatically generates type data for traits, which their implementors can then register.

Derive Macros§